package com.sgcc.pda.hzaidl.entity;

/**
 * Created by qinling on 2019/12/18 18:31
 * Description:
 */
public class BluetoothConnectParam {
    public static final class Request{
        String mac;
        int timeOut;

        public Request(String mac, int timeOut) {
            this.mac = mac;
            this.timeOut = timeOut;
        }

        /**
         * 蓝牙连接时使用
         * @param mac
         */
        public Request(String mac) {
            this.mac = mac;
        }

        public int getTimeOut() {
            return timeOut;
        }

        public void setTimeOut(int timeOut) {
            this.timeOut = timeOut;
        }

        public String getMac() {
            return mac;
        }

        public void setMac(String mac) {
            this.mac = mac;
        }
    }

    public static final class Response{
        boolean isDisConnect;
        boolean isSuccess;
        int code;
        String msg;
        public boolean isSuccess() {
            return isSuccess;
        }

        public boolean isDisConnect() {
            return isDisConnect;
        }

        public int getCode() {
            return code;
        }

        public String getMsg() {
            return msg;
        }

        public Response() {
        }

        public Response(boolean isSuccess, String msg) {
            this.isSuccess = isSuccess;
            this.msg = msg;
        }
        public Response(boolean isDisConnect,boolean isSuccess, int code, String msg) {
            this.isDisConnect = isDisConnect;
            this.isSuccess = isSuccess;
            this.code = code;
            this.msg = msg;
        }

        public void setDisConnect(boolean disConnect) {
            isDisConnect = disConnect;
        }

        public void setSuccess(boolean success) {
            isSuccess = success;
        }

        public void setCode(int code) {
            this.code = code;
        }

        public void setMsg(String msg) {
            this.msg = msg;
        }
    }



}
